using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.AgentesArtes
{
	/// <summary>
	/// A custom serializable dataset containing 
	/// </summary>
	[Serializable()]
	[DesignerCategory("code")]
	/// <summary>Class for handling datasets</summary>  
	public class AgentesAreasTemasData : DataTable
	{
		///
		/// Constants for table and fields mapping
		///
		public const string ART_AGENTES_AREAS_TEMAS_TABLE = "ART_AGENTES_AREAS_TEMAS";

		public const string AGE_ID_FIELD = "AGE_ID";
		public const string AAT_ID_FIELD = "AAT_ID";


		protected AgentesAreasTemasData(SerializationInfo info, StreamingContext context)
		{
			//
		}

		public AgentesAreasTemasData()
		{
			BuildDataTables();
		}

		/// <summary>
		/// Creates the following datatables: Localidades
		/// </summary>
		private void BuildDataTables()
		{
			Columns.Add(AGE_ID_FIELD, typeof (Decimal));
			Columns.Add(AAT_ID_FIELD, typeof (Decimal));

			TableName = ART_AGENTES_AREAS_TEMAS_TABLE;
		}

		/// <summary>
		/// Add a new row to the table
		/// </summary>
		/// <param name="row">Dataset row
		public void addAgentesAreasTemas(DataRow row)
		{
			Rows.Add(row);
		}
	}
}